Skip to content

Update channels to be more specific#143

Merged
lilyminium merged 6 commits into
mainfrom
fix-env-file-defaults
Jun 2, 2026
Merged

Update channels to be more specific#143
lilyminium merged 6 commits into
mainfrom
fix-env-file-defaults

Conversation

@lilyminium

Copy link
Copy Markdown
Member

Fixes #142

Changes made in this Pull Request:

  • Only includes "defaults" if Anaconda is selected

PR Checklist

  • Tests?
  • Docs?
  • CHANGELOG.md updated?
  • AUTHORS.md updated?
  • Issue raised/referenced?

@lilyminium lilyminium marked this pull request as draft November 16, 2024 03:26
name: {{cookiecutter.repo_name}}-test
channels:{% if cookiecutter.dependency_source == 'Prefer conda-forge over the default anaconda channel with pip fallback' %}
- conda-forge{% endif %}
channels:{% if cookiecutter.__dependency_source == 'anaconda' %}

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If I'm understanding this properly, if this case happens then the channel will be set to default and won't have conda-forge? If that's the case, they won't be able to download MDAnalysis so it stops being an mdakit.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch. I had been going to move MDA to the pip downloads but hadn't yet -- firstly need to figure out how to test this 😅

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure that offering the combination of a mixed pip + conda install is a good idea. i.e. it's what I would consider bad practice.

AFAIK there are nearly no cases where one has something in defaults that isn't in conda-forge - why even keep it around?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's not offer anaconda == defaults and instead just keep conda-forge around (or just pypi).

@orbeckst orbeckst left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's completely remove the option to choose anaconda (=defaults).

name: {{cookiecutter.repo_name}}-test
channels:{% if cookiecutter.dependency_source == 'Prefer conda-forge over the default anaconda channel with pip fallback' %}
- conda-forge{% endif %}
channels:{% if cookiecutter.__dependency_source == 'anaconda' %}

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's not offer anaconda == defaults and instead just keep conda-forge around (or just pypi).

@lilyminium lilyminium marked this pull request as ready for review June 1, 2026 19:42
@lilyminium lilyminium requested a review from orbeckst June 1, 2026 19:50

@orbeckst orbeckst left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That required a lot of edits! Thank you! From what I can see, lgtm.

@lilyminium lilyminium merged commit 6f516ee into main Jun 2, 2026
12 checks passed
@lilyminium lilyminium deleted the fix-env-file-defaults branch June 2, 2026 21:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Remove defaults

3 participants